
import { onMounted, ref } from 'vue';
import { getBannerAPI } from '@/apis/home';

export function useBanner() {
	const bannerList = ref([]);
	onMounted(() => {
		(async () => {
			const res = await getBannerAPI({ distributionSite: '2' }).then(res => res.data);
			bannerList.value = res.result;
		})()
	});
	return {
		bannerList
	}
}
